﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Happy.Web.Mvc;
using Happy.Query;
using Happy.Cms.Controllers.Utils;
using Happy.Cms.Query.Articles;
using Happy.Cms.Application.Articles;

namespace Tenoner.WebSite.Controllers
{
    public class NewsController : HappyController
    {
        //
        // GET: /Article/

        public ActionResult Index(int? page)
        {
            return View(this.GetIndexModel(page ?? 1));
        }

        private PageResult<ArticleView> GetIndexModel(int page)
        {
            return this.FindArticlesByCategoryName("动态", page, 15);
        }
    }
}
